package cn.itsource.org.domain;

import cn.itsource.basic.domain.BasicDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department  extends BasicDomain{
    private String sn;
    private String name;
    /*父级部门的层级结构*/
    private String dirPath;
    private Integer state;
    private Long manager_id;
    /*部门管理员*/
    private Employee manager;

    private Long parent_id;
    /*父级部门*/
    private Department parent;

    private List<Department> children =new ArrayList<>();
    public String getLabel(){
        return this.name;
    }

    public String getValue(){
        return String.valueOf(id);
    }

}
